package com.xg.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 机构表
 *
 
 * @email 825612263@qq.com
 * @date 2021-01-07 14:02:40
 */
@Data
@ApiModel(value = "SysOrganization对象", description = "机构表实体")
@Accessors(chain = true)
@TableName("sys_organization")
public class SysOrganizationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private Long id;
    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    private Long parentId;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    private Integer catLevel;
    /**
     * 展示状态【100101：正常，100102：禁用】
     */
    @ApiModelProperty(value = "展示状态【100101：正常，100102：禁用】")
    private String status;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    private String icon;

    @TableField(exist = false)
    @ApiModelProperty("子机构")
    private List<SysOrganizationEntity> children;

    @ApiModelProperty("备注")
    private String remark;

    @TableField(exist = false)
    @ApiModelProperty("关联场站")
    private List<String> stationIds;
}
